package com.yxw.live_vod_boot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yxw.live_vod_facade.dto.VideoCoinQueryDTO;
import com.yxw.live_vod_boot.dto.YxVideoCoinQueryDTO;
import com.yxw.live_vod_boot.entity.YxVideoCoinEntity;
import com.yxw.live_vod_boot.vo.YxVideoCoinVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 视频币明细mapper
 * @author xiexuxin
 * @date 2023-11-17
 */
@Repository
public interface VideoCoinMapper extends BaseMapper<YxVideoCoinEntity> {

       String[] VIDEO_COIN_DETAIL = {"直播", "违规处罚", "喜糖"};

       /**
        * 视频币明细查询
        * @param page
        * @param dto
        * @return
        */
       List<YxVideoCoinVO> getVideoCoinList(Page<YxVideoCoinVO> page, @Param("dto")YxVideoCoinQueryDTO dto);


       /**
        * 视频币明细查询后台
        * @param page
        * @param dto
        * @return
        */
       List<YxVideoCoinVO> getVideoCoinListBackend(Page<YxVideoCoinVO> page, @Param("dto") VideoCoinQueryDTO dto);

}
